package com.yourname.entity;

import java.math.BigDecimal;

/**
 * 成绩记录类
 */
public class StudentScore {
    public StudentScore(String id, String sid, String cid, int score, BigDecimal GPA,
                        boolean guake) {
        this.id = id;
        this.sid = sid;
        this.cid = cid;
        this.score = score;
        this.GPA = GPA;
        this.hanging=guake;
    }
    public StudentScore() {

    }

    private String id;//学生-成绩记录ID
    private String sid;//学号
    private String cid;//课程号
    private int score;//成绩
    private BigDecimal GPA;//绩点（2位小数）
    private boolean hanging;//是否挂科

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public BigDecimal getGPA() {
        return GPA;
    }

    public void setGPA(BigDecimal GPA) {
        this.GPA = GPA;
    }

    public boolean isHanging() {
        return hanging;
    }

    public void setHanging(boolean hanging) {
        this.hanging = hanging;
    }
}
